<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<link href="{$IMAGE}/skin.css" rel="stylesheet" type="text/css" />
<link href="{$CSS}/admin.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="{$JS}/jquery.js"></script>
<script type="text/javascript" src="{$Editor}/kindeditor.js"></script>
<script type="text/javascript">
editorPath = "{$Editor}";
//alert(editorPath);
KE.show({
	id : 'content',
	resizeMode : 1,
	imageUploadJson : '/admin.php?mod=upload&act=uploadArticleImage',
	//imageUploadJson : '../../php/upload_json.php',
	//fileManagerJson : editorPath+'/php/file_manager_json.php'
});
$(document).ready(function(){
	$(".form_table3 tbody>tr:odd").addClass("form_table_odd");
	$(".form_table3 tbody>tr:even").addClass("form_table_even");
	$(".form_table3 tbody>tr").mouseover(function() { $(this).addClass("form_table_over");}).mouseout(function() { $(this).removeClass("form_table_over");});
});
$(document).ready(function(){
	$(".xbtn").addClass("xbtn_mouseout").addClass("xbtn_width80")
	.mouseout(function(){
		$(".xbtn").addClass("xbtn_mouseout").addClass("xbtn_width80");
	})
	.mouseover(function(){
		$(".xbtn").addClass("xbtn_mouseover").addClass("xbtn_width80");
	})
});
$(document).ready(function(){
	$(":input").focus(function(){
		$(this).addClass("focus");
	}).blur(function(){
		$(this).removeClass("focus");
	});
});
</script>
<style type="text/css">
<!--
body{ margin:0px; background-color: #EEF2FB;}
-->
</style>
</head>
<body>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="17" valign="top" background="{$IMAGE}/mail_leftbg.gif"><img src="{$IMAGE}/left-top-right.gif" width="17" height="29" /></td>
    <td valign="top" background="{$IMAGE}/content-bg.gif">
        <table width="100%" height="31" border="0" cellpadding="0" cellspacing="0" class="left_topbg" id="table2">
          <tr>
            <td height="31"><div class="titlebt">欢迎界面</div></td>
          </tr>
        </table>
    </td>
    <td width="16" valign="top" background="{$IMAGE}/mail_rightbg.gif"><img src="{$IMAGE}/nav-right-bg.gif" width="16" height="29" /></td>
  </tr>
  <tr>
    <td valign="middle" background="{$IMAGE}/mail_leftbg.gif">&nbsp;</td>
    <td valign="top" bgcolor="#F7F8F9">
    	<!--内容div开始-->
        <div style="width:99%; padding:3px 4px;">
<form action="?mod=article&act=edit" method="post">
<input type="hidden" name="s" value="edit"> 
<input type="hidden" name="artid" value="{$article.art_id}">
<input type="hidden" name="htmlpath" value="{$article.htmlpath}">
 <table width="100%" class="form_table3">
	<tr>
		<td align="right" style="min-width: 40px;">标题：</td>

		<td>
		<input type="text" name="title" class="input" size="70" value="{$article['title']}" />
		<select name="cateid" id="cateid">
			{foreach from=$categorylist item=category}
			<option {if $article['cate_id']==$category.cate_id} selected="selected" {/if} value="{$category.cate_id}">{$category.catename}</option>	
			{/foreach}
		</select>
		</td>
	</tr>
	<tr>
		<td align="right" style="min-width: 40px;">作者：</td>
		<td>
			<input type="text" name="author" class="input" size="16" value="{$article.author}"/>
			<select name="is_private" style="width:100px;">
				<option value="0" {if $article.is_private==0} selected {/if}>公开</option>
				<option value="1" {if $article.is_private==1} selected {/if}>私有</option>
			</select>
			<select name="is_self" style="width:100px;">
				<option value="1" {if $article.is_self==0} selected {/if}>原创</option>
				<option value="0" {if $article.is_self==1} selected {/if}>非原创</option>
			</select>
			<select name="is_commend" style="width:100px;">
				<option value="0" {if $article.is_commend==0} selected {/if}>不推荐</option>
				<option value="1" {if $article.is_commend==1} selected {/if}>推荐</option>
			</select>
			<select name="is_index" style="width:100px;">
				<option value="1" {if $article.is_index==0} selected {/if}>首页显示</option>
				<option value="0" {if $article.is_index==0} selected {/if}>首页不显示</option>
			</select>
		</td>
	</tr>
	<tr>
		<td valign="top" align="right">内容：</td>

		<td><textarea name="content" class="eCotnent" id="content" style="width:100%;height:305px;">{$article.content}</textarea></td>
	</tr>
	<tr>
		<td valign="top" align="right">摘要：</td>
		<td><textarea id="excerpt" name="summary" rows="5" cols="80" style="width:99%" class="eExcerpt">{$article.summary}</textarea></td>
	</tr>
	
	<tr>
		<td></td><td>
		<input type="submit" class="button" value="发布文章" />
		<input type="button" class="button" value="另存为草稿" onclick="save_to_draft()" />
		<input type="button" class="button" value="返回上一页" onclick="history.back()" />
	</td>
	</tr>
</table> 
</form>      	
            <span style="border-top:1px solid #ccc; display:block; font-size:12px; color:#666; margin-top:6px; padding-top:4px;">
	            <img src="{$IMAGE}/icon-mail2.gif" width="16" height="11"> 客户服务邮箱：215288671@qq.com<br>
            </span>
        </div>    	
        <!--内容div结束-->
    </td>
    <td background="{$IMAGE}/mail_rightbg.gif">&nbsp;</td>
  </tr>
  <tr>
    <td valign="bottom" background="{$IMAGE}/mail_leftbg.gif"><img src="{$IMAGE}/buttom_left2.gif" width="17" height="17" /></td>
    <td background="{$IMAGE}/buttom_bgs.gif"><img src="{$IMAGE}/buttom_bgs.gif" width="17" height="17"></td>
    <td valign="bottom" background="{$IMAGE}/mail_rightbg.gif"><img src="{$IMAGE}/buttom_right2.gif" width="16" height="17" /></td>
  </tr>
</table>
</body>
</html>